/**
 * 
 */
package t4j.generics;

import java.util.Iterator;
import java.util.LinkedList;

/**
 * @author sz
 *
 * create time：2013-2-18
 */
public class SimpleQueue<T> implements Iterable<T>{

	private LinkedList<T> storage = new LinkedList<T>();
	
	public void add(T t){
		storage.offer(t);
	}
	
	public T get(){
		return storage.poll();
	}
	
	public Iterator<T> iterator(){
		return storage.iterator();
	}
}
